#pragma once
#include "stdafx.h"
#include "CHttpDown.h"
#include "Cdiv.h"

class MultThreadDown
{
public:
	MultThreadDown(void);
	~MultThreadDown(void);
	VOID SetThreads( int  nCount = 2 );
	VOID KillThreads();
	VOID ActiveThread();
	VOID SetDownUrl( CHttpUrl* url );
	VOID ImagesDown();
	VOID ImageDown(CHttpUrl* httpurl );

	GTools *m_tools;
private:
	int m_nThreadCount;
	int m_nCurrent;
	CHttpUrl* m_pHttpUrl;
	
	CHttpDown* m_pHttpDown;
	CThread*  m_pThread;
};
